package JavaDesign.report_1.t_1;

/**
 * @author zouran
 * createDate：2023/9/20  18:01
 */
public class Main {
    public static void main(String[] args) {
        double r = 1.0, height = 2;
        Circle circle = new Circle(r);
        Pillar pillar = new Pillar(circle, height);
        System.out.println("底部圆周半径为" + r + "高为:" + height + "的圆柱体体积为:" + pillar.getVolume());
    }
}
